package edu.zut.pioneer.sale.domain;


import edu.zut.pioneer.base.domain.BaseTree;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Entity
@Table(name = "saleType")
public class SaleType extends BaseTree<SaleType, Long> {


    @Column(name = "date", nullable = false)
    private Date date;
    @Column(name = "genre")
    private String genre;

    public SaleType() {
        super();
    }

    @Override
    public String toString() {
        return "SaleType{" +
                ", date=" + date +
                ", genre='" + genre + '\'' +
                '}';
    }


    public Date getDate() {
        return date;
    }

    public String getGenre() {
        return genre;
    }


    public void setDate(Date date) {
        this.date = date;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }
}
